import request from '@/utils/request'

// 查询计提全勤奖列表
export function listJtqqj(query) {
  return request({
    url: '/basebill/jtqqj/list',
    method: 'get',
    params: query
  })
}

// 查询计提全勤奖详细
export function getJtqqj(fid) {
  return request({
    url: '/basebill/jtqqj/' + fid,
    method: 'get'
  })
}

// 新增计提全勤奖
export function addJtqqj(data) {
  return request({
    url: '/basebill/jtqqj',
    method: 'post',
    data: data
  })
}

// 修改计提全勤奖
export function updateJtqqj(data) {
  return request({
    url: '/basebill/jtqqj',
    method: 'put',
    data: data
  })
}

// 删除计提全勤奖
export function delJtqqj(fid) {
  return request({
    url: '/basebill/jtqqj/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importQqjjt(fids) {
  return request({
    url: '/basebill/jtqqj/importQqjjt/' + fids,
    method: 'get'
  })
}
